Remove mode-line and tweak max-height
authorjustbur <justin@burkett.cc>
Thu, 9 Jul 2015 12:22:56 +0000 (08:22 -0400)
committerjustbur <justin@burkett.cc>
Thu, 9 Jul 2015 12:22:56 +0000 (08:22 -0400)
max-height for side-window could still be more precise, but this seems
to work

which-key.el

index 351479342086aacbac8107b88f92c9ce5738ffa9..49f1f4f6b0bb1158b9fecc87a04d12d50973f8ed 100644 (file)
@@ -157,7 +157,7 @@ Used when `which-key-popup-type' is frame.")
   (with-current-buffer which-key--buffer
     (setq-local cursor-type nil)
     (setq-local cursor-in-non-selected-windows nil)
-    (setq-local mode-line-format ""))
+    (setq-local mode-line-format nil))
   (setq which-key--setup-p t))
 
 ;;;###autoload
@@ -375,8 +375,7 @@ of the intended popup."
   (cons
    ;; height
    (if (member which-key-side-window-location '(left right))
-       (- (frame-height) 1) ; 1 is for minibuffer
-          ;; (window-height (minibuffer-window))
+       (- (frame-height) (window-text-height (minibuffer-window)) 1) ;; 1 is a kludge to make sure there is no overlap
           ;; (window-mode-line-height which-key--window))
      ;; FIXME: change to something like (min which-*-height (calculate-max-height))
      which-key-side-window-max-height)